home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
bench
/
x.txt
/
000272_fdc@columbia.edu_Sun Dec 30 15:52:56 EST 2001.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
3KB
|
72 lines
Article: 13102 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.sys.sun.admin,comp.unix.solaris,comp.sys.sun.hardware,comp.protocols.kermit.misc
Subject: Re: Sun Serial-Ports (and GPS)
Date: 30 Dec 2001 15:49:40 -0500
Organization: Columbia University
Lines: 55
Message-ID: <a0nul4$5gb$1@watsol.cc.columbia.edu>
References: <3C2F3EFB.DE0DF5@_mail9ndn3ws_._com> <3C2F7281.18204EC5@_mail9ndn3ws_._com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1009745381 11865 128.59.39.139 (30 Dec 2001 20:49:41 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 30 Dec 2001 20:49:41 GMT
Xref: newsmaster.cc.columbia.edu comp.sys.sun.admin:182427 comp.unix.solaris:367880 comp.sys.sun.hardware:115639 comp.protocols.kermit.misc:13102
In article <3C2F7281.18204EC5@_mail9ndn3ws_._com>,
Ben <unix-rlz@_mail9ndn3ws_._com> wrote:
: > I've got a Garmin GPS 40 which I'm trying to get working on an E-450
: > (and a 420R) under Solaris 8 and I'm not getting any serial I/O. At
: > this point if I could simply see NMEA strings via 'tip' that would be
: > great. I know the NMEA output is not a great time-source by itself.
: >
: > The GPS unit basically runs at 4800,8,n,1. I've disabled the ttymon
: > service to the ports I've tried, tried tweaking the OBP port settings,
: > and I can't get any strings.
You have to consider at least the following:
1. Making sure the serial port is configured, set up, enabled, etc.
This is Solaris sysadmin stuff.
2. Using the appropriate "name" (driver) for the serial port; each
serial port might have several drivers for different purposes:
ranging from full modem control to three-wire (no modem control).
3. Using an appropriate cable.
4. Making sure the serial port is not owned by getty (i.e. not waiting
for incoming login connections) or any other process.
5. Picking the best software for the job.
You've received a number of answers on 1-4. For further info look at:
http://www.stokely.com/unix.serial.port.resources
Once you have items 1-4 sorted out, you might want to take a look at
C-Kermit as the control software:
http://www.columbia.edu/kermit/ckermit.html
It gives you every conceivable control over communications parameters
(speed, parity, use/don't-use modem signals, data size, stop bits, flow
control...) Flow control is, of course, an issue. If the GPS is spewing
out info constantly, how is the Sun going to tell it to stop (for example
because nobody is listening at the moment and the device input buffer is
full)? The common options are RTS/CTS (hardwire, requires the appropriate
connections in the cable) and Xon/Xoff (software, special control characters
in line with the data). If the GPS offers no mechanism for flow control,
you'll need a process constanty reading from it.
Anyway, once you are able to see the GPS messages, then you can program
Kermit (using its script language) to process the messages and do whatever
you like with them: log them to a file, accumulate statistics, send alerts
by email, pager, or whatever. To get started with Kermit scripting, see:
http://www.columbia.edu/kermit/ckscripts.html
- Frank